import request from '@/utils/request'

enum API {
  //获取一级分类接口地址
  Cloud1 = '/wordCloud/project/',
  Cloud2 = '/wordCloud/unit/',
  Bar1 = '/bar/rewardcount/',
  Bar2 = '/bar/rewardlevel/',
  Bar3 = '/bar/participate/',
  Table1 = '/table/coor/',
  Pie1 = '/pie/comTypeCnt/'
}

export const reqCloud1 = (province: string) => request.get<any, any>(API.Cloud1 + `${province}`)
export const reqCloud2 = (province: string) => request.get<any, any>(API.Cloud2 + `${province}`)
export const reqBar1 = (province: string) => request.get<any, any>(API.Bar1 + `${province}`)
export const reqBar2 = (province: string) => request.get<any, any>(API.Bar2 + `${province}`)
export const reqBar3 = (province: string) => request.get<any, any>(API.Bar3 + `${province}`)
export const reqTable1 = (province: string) => request.get<any, any>(API.Table1 + `${province}`)
export const reqPie1 = (province: string) => request.get<any, any>(API.Pie1 + `${province}`)
